package com.hbx.dto.anno;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/*
 * @Author:hbx
 *
 * */
@Data
public class InsertOrUpdateDto {
    @ApiModelProperty(value = "公告id")
    private Integer id;

    @ApiModelProperty(value = "公告标题")
    @NotBlank(message = "公告标题不可为空")
    private String annoTitle;

    @ApiModelProperty(value = "公告内容")
    @NotBlank(message = "公告内容不可为空")
    private String annoContent;

    @ApiModelProperty(value = "是否全局展示,1、是，0、不是")
    @NotNull(message = "是否全局展示不可为空")
    private Integer annoIsCommond;
}
